package edu.hpu.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 三分恶
 * @Date 2020/1/11
 * @Description
 */
@RestController
public class HelloController {

    @GetMapping("/user/hello")
    public String userHello(){
        return "你好，普通用户！";
    }

    @GetMapping("/admin/hello")
    public String adminHello(){
        return "你好，管理员！";
    }

    @GetMapping("/db/hello")
    public String dbaHello(){
        return "你好，数据库管理员！";
    }
}
